home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 164 - Disc 2 / MF_UK_164_2.iso / DiscContents / Games / Football Manager 2006 / Install Mac FM2006 Gold Demo.dmg / FM2006 Gold Demo / data / panels / example panel.xml < prev    next >
Encoding:
Extensible Markup Language  |  2005-09-25  |  1.2 KB  |  31 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE panel SYSTEM "http://www.sigames.com/dtds/sios/panel.dtd">
  3.  
  4. <!-- an example panel -->
  5. <panel>
  6.     <!-- the panel has very simple content, just a label and a button arrange vertically
  7.          one below the other -->
  8.     
  9.     <boolean id="late_loading" value="true"/>
  10.     
  11.     <!-- you specify the layout of the items with layout attachments -->
  12.     <!-- this is the trickiest bit of the whole process -->
  13.     
  14.     <!-- first, we tell this container to lay out its content from top to bottom -->
  15.     <layout class="arrange_vertical_attachment" alignment="top"/>
  16.     
  17.     <!-- then we tell it to make sure that all of its content sticks to the -->
  18.     <!-- left hand edge of the panel -->
  19.     <layout class="stick_to_sides_attachment" alignment="left" layout_children="true"/>
  20.     
  21.     
  22.     <!-- this is where we actually create the widgets which form the content of the panel -->
  23.     
  24.     <!-- first, a label -->
  25.     <!-- we will leave its text blank, because we're going to set it from code -->
  26.     <widget class="label" id="exlb" auto_size="horizontal"/>
  27.     
  28.     <!-- then a button -->
  29.     <!-- the name of the button won't change, so it's best to set it in XML -->
  30.     <widget class="action_button" id="exbt" text="Example Button"/>
  31. </panel>